#!/bin/sh

# =====================================
# start script
# =====================================
# execute it after running build.sh
# run command: $ /.start.sh
#

# set option -x, for debug shell
# trace shell execution, show all of command
set -x

# set target path
TARGET_DIR=./build/release-cpp11/bin
TARGET_NAME=ftpserver
TARGET_PATH=$TARGET_DIR/$TARGET_NAME

# copy config file (config.ini) to the same parent directory with target application.
cp ./ftpserver/config.ini $TARGET_DIR

# launch target application
cd $TARGET_DIR
chmod +x $TARGET_NAME
./$TARGET_NAME
